From 71018711d9792fa53f6766bf1078c1cca2d72125 Mon Sep 17 00:00:00 2001 From: robertl Date: Sun, 19 Jul 2009 06:52:23 +0000 Subject: [PATCH] Reorder track/waypt/route options n mapping GUI so they actually take effect. Sketch in track breaker for Map GUI. --- gui/maindlg.cpp | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/gui/maindlg.cpp b/gui/maindlg.cpp index 0a90c833f..82dfb1551 100644 --- a/gui/maindlg.cpp +++ b/gui/maindlg.cpp @@ -1,5 +1,5 @@ // -*- C++ -*- -// $Id: maindlg.cpp,v 1.1 2009/07/05 21:14:56 robertl Exp $ +// $Id: maindlg.cpp,v 1.2 2009/07/19 06:52:23 robertl Exp $ //------------------------------------------------------------------------ // // Copyright (C) 2009 S. Khai Mong . @@ -678,7 +678,11 @@ void MainDlg::applyClicked() // Input char set if specified if (bd.enableCharSetXform && bd.inputCharSet != QString()) args << "-c" << bd.inputCharSet; - + + if (bd.xlateWayPts) args << "-w"; + if (bd.xlateRoutes) args << "-r"; + if (bd.xlateTracks) args << "-t"; + // Input type, with options bool iisFile = (bd.inputType == BabelData::fileType); int fidx = formatIndexFromName(iisFile, iisFile ? @@ -695,10 +699,6 @@ void MainDlg::applyClicked() args << "-f" << bd.inputDeviceName; } - if (bd.xlateWayPts) args << "-w"; - if (bd.xlateRoutes) args << "-r"; - if (bd.xlateTracks) args << "-t"; - // --- Filters! args << filterData.getAllFilterStrings(); @@ -731,6 +731,12 @@ void MainDlg::applyClicked() ftemp.open(); tempName = ftemp.fileName(); ftemp.close(); + + // Ideally, expost this in the UI. For now, just split the track + // if we've no recorded fixes for > 5 mins and we've moved > 300 meters. + args << "-x"; + args << "track,pack,sdistance=0.3k,split=5m"; + args << "-o"; args << "gpx"; args << "-F" << tempName; -- 2.30.2